import axios from '@/utils/axios'

// 获取文章详情中评论列表
export const comments = params => {
  return axios({
    method: 'GET',
    url: '/app/v1_0/comments',
    params
  })
}

// 添加评论
export const addComments = data => {
  return axios({
    method: 'POST',
    url: '/app/v1_0/comments',
    data
  })
}
